{if $smarty.session.form_filter.form_object_id!=$smarty.get.form_object_id || $smarty.get.form_object_id==-1 }
	{assign_session var="form_filter" value=""}
{/if}
{ext->countArray array=$smarty.session.form_filter assign="filter_count"}
{ext->get_forms_filtered filter=$smarty.session.form_filter assign="form_all"}
{ext->array_reverse array=$form_all assign="form_all"}

<table width="100%" cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td>

<table cellpadding="0" cellspacing="0" bgcolor="#F8F9F9">
	<tr>
		<td width="10"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td height="22" style="font-weight:bold" >{t t='Vartotojų užpildytų formų valdymas'}</td>	
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td>{t t='Pasirinkite kalbą'}:</td>
		<td width="15"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
		<td>		
		<select name="languages" style="width:70px" onChange="window.location='index.php?admin=1'+this.value">
		  {foreach from=$data.tree.lang item="el"}
		  <option value="&lang={$el.name}" {if $data.tree.lng.cur|lower==$el.name|lower}selected{/if}>{$el.name}</option>
		  {/foreach}
		</select>		
		</td>
	</tr>
</table>
	</td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="2" bgcolor="#D9DFE3"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
	<tr>
		<td height="20"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>		
	</tr>
</table>
{if $smarty.get.form_id}
	{include file="admin/body/forms/contenteditor.htm"}
{elseif $smarty.get.form_stats}
	{include file="admin/body/forms/stats.htm"}
{else}
	{include file="admin/body/forms/list.htm"}
{/if}
